package constructor11;

public class HardwareMaintenanceEngineer extends Maintenance{

    public HardwareMaintenanceEngineer(String id,String name,boolean marrystatus){
        super(id, name,marrystatus);
    }

    public HardwareMaintenanceEngineer(String id, String name) {
        super(id, name);
    }

    @Override
    public void work() {
        System.out.println("员工号为" + getId() + "的" + (isMarrystatus() ? "已婚" : "未婚") + "的" + getName() + "员工,正在修复打印机");
    }
}
